import request from '@/utils/request'
// 保证金分页
export function apiWorkerSecurityDepositRecordPage(data) {
    return request({
        method: 'post',
        url: '/workerSecurityDepositRecord/page',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 保证金记录导出
export function apiWorkerSecurityDepositRecordExport(data) {
    return request({
        method: 'post',
        url: '/workerSecurityDepositRecord/export',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}

// 保证金规则获取
export function apiSystemConfigList(data) {
    return request({
        method: 'get',
        url: '/system/config/list',
        params: {
          configKey:'worker'
          
        },
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 设置保证金规则
export function apiSystemConfig(data) {
    return request({
        method: 'put',
        url: '/system/config',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 保证金退款申请
export function apiWorkerSecurityDepositRefund(data) {
    return request({
        method: 'post',
        url: '/workerSecurityDepositRecord/workerSecurityDepositRefund',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 保证金退款详情
export function apiRefundDetail(data) {
    return request({
        method: 'post',
        url: '/workerSecurityDepositRecord/refundDetail',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}

// 查询待支付数量
export function apiWorkerSecurityDepositRecordCount(data) {
    return request({
        method: 'post',
        url: '/workerSecurityDepositRecord/count',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
